graph.o: graph.cpp graph.h
	g++ -c graph.cpp -fpermissive
reg2nfa.o: reg2nfa.cpp reg2nfa.h
	g++ -c reg2nfa.cpp -fpermissive
transTB.o:	transTB.cpp transTB.h
	g++ -c transTB.cpp -fpermissive
test: test.cpp graph.o reg2nfa.o transTB.o
	g++ test.cpp -o test ./graph.o ./reg2nfa.o ./transTB.o -fpermissive
run: test
	./test
clean:	graph.o reg2nfa.o transTB.o test
	rm graph.o reg2nfa.o transTB.o test
